package com.zfzs.post.modules.post.repository;

import com.zfzs.post.modules.post.domain.PostTerminalDistribu;
import com.zfzs.post.modules.post.domain.dto.DistribuDTO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
* @author wq
* @date 2019-10-09
*/
public interface PostTerminalDistribuRepository extends JpaRepository<PostTerminalDistribu, Long>, JpaSpecificationExecutor {


    List<PostTerminalDistribu> findBySnInAndState(List<String> snList,Integer state);


    PostTerminalDistribu findBySnAndState(String sn,Integer state);
}